import 'package:mall/modules/model/category_entity.dart';
import 'package:mall/modules/model/goods_entity.dart';
import 'package:json_annotation/json_annotation.dart';

part 'category_goods_entity.g.dart';

@JsonSerializable()
class CategoryGoodsEntity {
  int? total;
  int? pages;
  int? limit;
  int? page;
  List<GoodsEntity>? list;
  List<CategoryEntity>? filterCategoryList;

  CategoryGoodsEntity({
    this.total,
    this.pages,
    this.limit,
    this.page,
    this.list,
    this.filterCategoryList,
  });

  factory CategoryGoodsEntity.fromJson(Map<String, dynamic> json) => _$CategoryGoodsEntityFromJson(json);

  Map<String, dynamic> toJson() => _$CategoryGoodsEntityToJson(this);
}
